home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 15
/
Aminet 15 - Nov 1996.iso
/
Aminet
/
misc
/
emu
/
AMIGHPv2a.lha
/
AMIGHPv2a
/
EXAMPLES
/
Z.s
< prev
next >
Wrap
Text File
|
1996-09-25
|
568b
|
54 lines
include entries.i
con(5) DOCODE
Debut con(5) Fin-Debut
J equ $800F5
I equ $800FA
GOSBVL $0679B
LAB0
D0=(5) $800FA
A=DAT0 A
R0=A A
GOSBVL $067D2
GOSBVL $06537
GOSBVL $0679B
LAHEX $800FA
D0=A
LCHEX $00032
A=DAT0 A
?C<A A
GOYES LAB1
GOTO LAB2
LAB1
GOSBVL $067D2
A=DAT0 A
D0=D0+ 5
PC=(A)
GOTO LAB3
LAB2
LAB4
LCHEX $000C8
D0=(5) $800F5
A=DAT0 A
?C>A A
GOYES LAB5
GOTO LAB6
LAB5
LCHEX $0000A
D0=(5) $800FA
A=DAT0 A
GOSBVL $03991
C=B A
D0=(5) $800F5
DAT0=C A
GOTO LAB4
LAB6
D0=(5) $800FA
C=DAT0 A
C=C+1 A
DAT0=C A
LAB3
GOTO LAB0
Fin